package com.lin.sppringbootdemo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "limit")
//@PropertySource
@Data
public class LimitConfig {

    int minMoney;
    int maxMOney;
    String description;
}
